<!DOCTYPE>
<html>
<head>
<meta name="Generator" content="QQ 80342014" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />

<title><?php echo $this->_var['page_title']; ?></title>

<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />


</head>
<body>
<?php echo $this->fetch('library/header.lbi'); ?>

<?php echo $this->smarty_insert_scripts(array('files'=>'user.js,transport_jquery.js')); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'jquery.json.js')); ?>
<?php if ($this->_var['action'] == 'login' || $this->_var['action'] == 'register'): ?>
<div class="y-navn">
	<div id="navs">
		<ul>
			<li <?php if ($this->_var['action'] == 'login'): ?> class="wk-li-action"<?php endif; ?>><a  href="user.php?act=login" >用户登录</a></li>
			<li <?php if ($this->_var['action'] == 'register'): ?> class="wk-li-action"<?php endif; ?>><a href="user.php?act=register">快速注册</a></li>
		</ul>
	</div>
</div>
<div class="clear"></div>
<div class="y-main" style="display:block">	
<div class="y-logo"></div>
<?php endif; ?>

<?php if ($this->_var['action'] == 'login'): ?> 
	   <form name="formLogin" action="user.php" method="post" onSubmit="return userLogin()">
		<div class="y-dly"> 
			<div class="y-dlxx">
				<div class="y-phone" style="border: none;"> 
					<input class="y-input-txt"  type="text" name="username" placeholder="请输入手机号码">
				</div>
				<!-- <div class="y-phone y-dlmm"> 
					<input class="y-input-txt y-input-a" type="password" name="password" placeholder="请输入登录密码">
				<img src="" />
				</div> -->
				<div class="y-phone y-dlmm wk-look"> 
					<img  class="wk-right-1rem" src="themes/view/img/icon.png" />
					<input class="y-input-txt y-input-a" onkeyup="checkIntensity(this.value)"  name="password" type="password" id="password1" placeholder="请输入登录密码">
					<input class="y-input-txt y-input-aa" onkeyup="checkIntensity(this.value)"  style="display:none" type="text" id="password2"  placeholder="请输入登录密码">
					<div class="clear"></div>
				</div>
				<?php if ($this->_var['enabled_captcha']): ?> 
				<div class="y-phone y-yzm">
					<input class="y-input-txt y-input-b" type="text" name="captcha" placeholder="请输入验证码"> 
					<img  class="y-sryzm"  src="captcha.php?is_login=1&<?php echo $this->_var['rand']; ?>" alt="captcha" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha.php?is_login=1&'+Math.random()" />
				</div>
				 <?php endif; ?>
			</div>
		</div>
		<div class="clear"></div>
			<div class="y-wjmm"><a href="user.php?act=get_password">忘记密码？</a></div>
			<input type="hidden" name="act" value="act_login" />
            <input type="hidden" name="back_act" value="<?php echo $this->_var['back_act']; ?>" />
			<input class="y-dl" type="submit" value="登录" name=""/>
	</form>	

<?php endif; ?>



    <?php if ($this->_var['action'] == 'register'): ?>
    <?php if ($this->_var['shop_reg_closed'] == 1): ?> 
	 <div class="usBox">
      <div class="usBox_2 clearfix">
        <div class="f1 f5" align="center"><?php echo $this->_var['lang']['shop_register_closed']; ?></div>
      </div>
    </div>
    <?php else: ?>
	
	<?php echo $this->smarty_insert_scripts(array('files'=>'utils.js,sms.js')); ?>
	<form action="user.php" method="post" name="formUser" onsubmit="return register();">
		<input id="dayu_sms_smsgap" type="hidden" value="<?php echo $this->_var['dayu_sms_smsgap']; ?>">
		<div class="y-dly">
		
			<div class="y-dlxx">
				<div class="y-phone" style="border: none;"> 
					<input class="y-input-txt" type="text"  size="25"  onblur="is_registered(this.value);"  id="username" name="username" placeholder="请输入手机号码"> 
				</div>
				<span id="username_notice" style="color:#FF0000;font-size: 0.6rem;"> </span>  
				<input class="y-input-txt" type="hidden" value="111@qq.com"  size="25"   name="email" placeholder="请输入邮箱"> 
		  
				<div class="y-phone y-dlmm wk-look"> 
					<img  class="wk-right-1rem" src="themes/view/img/icon.png" />
					<input class="y-input-txt y-input-a"  name="password" type="password" id="password1" onblur="check_password(this.value);" onkeyup="checkIntensity(this.value)"   placeholder="请输入登录密码">
					<input class="y-input-txt y-input-aa"  style="display:none" type="text" id="password2" onblur="check_password(this.value);" onkeyup="checkIntensity(this.value)"   placeholder="请输入登录密码">
					<div class="clear"></div>
				</div>
				<div class="y-phone y-dlmm"> 
					<input class="y-input-txt "  name="confirm_password" type="password" id="conform_password" onblur="check_conform_password(this.value);"    placeholder="确认登录密码">
				<img src="" />
				</div> 
	 <?php $_from = $this->_var['extend_info_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'field');if (count($_from)):
    foreach ($_from AS $this->_var['field']):
?>
				<?php if ($this->_var['field']['id'] == 6): ?> 
				<?php else: ?> 
				<div class="y-phone y-dlmm"> 
					<input class="y-input-txt " name="extend_field<?php echo $this->_var['field']['id']; ?>"  placeholder="<?php echo $this->_var['field']['reg_field_name']; ?>">
				</div>	 
				<?php endif; ?>
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
				 
			<?php if ($this->_var['enabled_captcha']): ?>
				<div class="y-phone y-yzm">
					<input class="y-input-txt y-input-b" type="text" name="captcha" placeholder="请输入验证码">
					  <img  class="y-sryzm" src="captcha.php?<?php echo $this->_var['rand']; ?>" alt="captcha" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha.php?'+Math.random()" /> 
				</div>
			<?php endif; ?> 
				<div class="y-phone y-yzm y-sjyzm">
					<input class="y-input-txt y-input-b " type="text" name="code" placeholder="请输入手机验证码">
					<input class="y-sryzm y-hqyzm" type="button" id="zphone"  onclick="getverifycode2()" value="获取验证码" name=""/>
				</div>
				<div class="y-phone y-yaoq">
					<input class="y-input-txt" type="text" name="parent_mobile" placeholder="请输入邀请人手机号码（选填）">
				</div>
			</div>
		</div>
		<div class="y-rad">
 
			<input class="y-radio" name="agreement" type="checkbox" value="1" checked="checked" />
			<div class="y-zcxy">同意<?php echo $this->_var['lang']['agreement']; ?></label>
			</div>
			</div>
			<input name="act" type="hidden" value="act_register" >
			<input type="hidden" name="back_act" value="<?php echo $this->_var['back_act']; ?>" />
			<input class="y-dl" type="submit" value="注册" name=""/>
				
	</form>	
 
<?php endif; ?>
<?php endif; ?>




    <?php if ($this->_var['action'] == 'get_password'): ?>
    <?php echo $this->smarty_insert_scripts(array('files'=>'utils.js,user.js,sms.js')); ?>
    <script type="text/javascript">
    <?php $_from = $this->_var['lang']['password_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
      var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </script>
<div class="y-navn">
<div id="navs">
	<ul>
		<li style="width: 16rem;"><a >短信登录</a></li> 
	</ul>
</div>
</div>
<div class="clear"></div>

<div class="y-logo"></div>
	   <form action="user.php" method="post" name="getPassword" onsubmit="return submitPwdInfos();">
		<input type="hidden" name="dayu_sms_smsgap" value="<?php echo $this->_var['dayu_sms_smsgap']; ?>">
		<div class="y-dly"> 
			<div class="y-dlxx">
				<div class="y-phone" style="border: none;"> 
					<input class="y-input-txt"  type="text" id="user_name" name="user_name" placeholder="请输入手机号码">
				</div>
				<div class="y-phone y-yzm y-sjyzm">
					<input class="y-input-txt y-input-b " type="text" name="code" placeholder="请输入手机验证码">
					<input class="y-sryzm y-hqyzm" type="button" id="zphone"  onclick="getverifycode3()" value="获取验证码" name=""/>
				</div>
				<input type="hidden" name="act" value="mobile_denglu" />
			</div>
		</div>
		<div class="clear"></div>
			<input class="wk-button" type="submit" value="<?php echo $this->_var['lang']['submit']; ?>" name=""/> 
			<br/>
			<input class="wk-button"  type="button" onclick="history.back()" value="<?php echo $this->_var['lang']['back_page_up']; ?>" />
	</form>	



<?php endif; ?>




</div>
</body>
<script type="text/javascript">
var process_request = "<?php echo $this->_var['lang']['process_request']; ?>";
<?php $_from = $this->_var['lang']['passport_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
var username_exist = "<?php echo $this->_var['lang']['username_exist']; ?>";
$('.wk-right-1rem').click(function(){
	var _src =  $(this).attr('src');
	if (_src.match("icons"))
	{
		$(this).attr('src',' themes/view/img/icon.png');
		var pwd_text = $("#password2").val();
       	$("#password2").hide();
       	$("#password1").val(pwd_text).show();
	}
	else
	{
		$(this).attr('src',' themes/view/img/icons.png');
		var pwd = $("#password1").val();
       	$("#password1").hide();
       	$("#password2").val(pwd).show();
		
	}
});
function checkIntensity(val){
$("#password1").val(val)
$("#password2").val(val)
}
</script>



</html>
